package com.scu.commodities.service.task;

/**
 * @author chengCheng
 * @className TestOrderStatus
 * @description
 * @date 2024/4/18 22:27
 * @contactMe 1194989224@qq.com
 */
public class TestOrderStatus {

	 interface a{
		void ceshi(String ceshi);
	}

	static class b implements a{

		@Override
		public void ceshi(String ceshi) {
			System.out.println("ceshi");
		}
	}
	 static class b1 implements a{

		@Override
		public void ceshi(String ceshi) {
			System.out.println("2");
		}
	}

	static class Frun{
		private a a;

		public Frun(a a){
			this.a =a;
		}
		public void print(String ceshi){
			a.ceshi(ceshi);
		}
	}

	public static void main(String[] args) {
		final a b1 = new b1();
		new Frun(new b()).print("1");

	}
}
